/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package library.book;

/**
 *
 * @author MonStar
 */
public class SetID {

    private static SetID instanceID;
    private Integer id;

    private SetID() {
        id = 0;
    }

    public static SetID getInstanceID() {
        if (instanceID == null) {
            instanceID = new SetID();
        }
        return instanceID;
    }

    public Integer setID() {
        id += 1;
        return id;
    }

    public Integer getID() {
        return id;
    }
}
